# Created by 子沐 at 2019/10/25
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_sockets import Sockets
from config import config
from flask_socketio import SocketIO
app=Flask(__name__)
db = SQLAlchemy()
config_name='development'
app.config.from_object(config[config_name])
config[config_name].init_app(app)
app.config['SECRET_KEY'] = 'secret!'
socketio = SocketIO(app)
db.init_app(app)
sockets = Sockets(app)
